<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue对象的data属性详解</title>
    <script src="../../js/vue.js"></script>
</head>
<body>
<div id="app">
    {{message}}
    <h2>{{person}}</h2>
    <ul>
        <li>{{person.name}}</li>
        <li>{{person.age}}</li>
    </ul>
    <h2>{{address}}</h2>
    <h2>{{address[0]}}</h2>
    <ul>
        <li v-for="ads in address">{{ads}}</li>
    </ul>
</div>
</body>
<script>

    let app = new Vue({
        el: '#app',
        data: {
            message: '字符串类型的数据',
            person: {
                name: 'zym',
                age: 25
            },
            address: ['天津', '北京', '西安']
        }
    });

</script>
</html>